package main
import (
"fmt"
"time"
"math/rand"
"net/http"
"io/ioutil"
)


func main() {
	for i := 0; i < 10; i++ {
	go f(i)
	}
	var input string
	fmt.Scanln(&input)
	}
func f(n int) {
	for i := 0; i < 10; i++ {
	fmt.Println(n, ":", i)
	amt := time.Duration(rand.Intn(250))
	time.Sleep(time.Millisecond * amt)
	}

	resp, err := http.Get("https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=")
	if err != nil {
		// handle error
	}
	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	fmt.Println(err)
	fmt.Println(resp)
	fmt.Println(body)

}